package com.bill.gaty.mfidelity.dto;

import android.annotation.SuppressLint;
import java.text.ParseException;
import java.text.SimpleDateFormat;
class DateDto   {
 
String date;
String timezone_type;
String timezone;
public String getDate() {
	return date;
}

 

@Override
public String toString() {
	return "DateDto [date=" + date + ", timezone_type=" + timezone_type
			+ ", timezone=" + timezone + ", getDate()=" + getDate() + "]";
}



public void setDate(String date) {
	this.date = date;
}
public String getTimezoneType() {
	return timezone_type;
}
public void setTimezoneType(String timezone_type) {
	this.timezone_type = timezone_type;
}
public String getTimezone() {
	return timezone;
}
public void setTimezone(String timezone) {
	this.timezone = timezone;
}

public DateDto(){
	 super();
}
public DateDto(String  date){
	 this.date=date;
}
@SuppressLint("SimpleDateFormat")
public java.util.Date toDate(){
	 SimpleDateFormat f=new SimpleDateFormat("yyyy-mm-dd H:i:s");
	 try {
		return f.parse(getDate());
	} catch (ParseException e) {
		// TODO Auto-generated catch block
		e.printStackTrace();
	}
	return null;
}
}
